package main

import (
	"fmt"
	"strconv"
)

func main() {
	fmt.Println(isPalindrome(11))
}

func isPalindrome(x int) bool {
	if x < 0 {
		return false
	}

	if x < 10 && x >= 0 {
		return true
	}

	vv := []byte(strconv.Itoa(x))
	p1, p2 := 0, len(vv)-1
	for p1 <= p2 {
		if vv[p1] != vv[p2] {
			return false
		}
		p1++
		p2--
	}

	return true
}
